import 'package:flutter/material.dart';
import 'package:get/get.dart';

class NavigationController extends GetxController {
  static NavigationController ins = Get.find();

  final GlobalKey<NavigatorState> navigationKey = GlobalKey();

  Future<dynamic>? navigationTo(String routeName) =>
      navigationKey.currentState?.pushNamed(routeName);

  goBack() => navigationKey.currentState?.pop();
}
